home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / resident / makefile < prev    next >
Encoding:
Makefile  |  1996-07-16  |  1.3 KB  |  67 lines

  1. # $Id: Makefile 1.2 1995/11/14 22:24:31 digulla Exp digulla $
  2. # $Log: Makefile $
  3. # Revision 1.2    1995/11/14  22:24:31  digulla
  4. # src/ replaced by $(SRCDIR)
  5. #
  6. # Revision 1.1    1995/11/05  22:41:12  digulla
  7. # Initial revision
  8. #
  9.  
  10. TOP_DIR     = prj:
  11. PART        = exec
  12. SUBPART     = resident
  13. CURRENT_DIR    = source/$(PART)/$(SUBPART)/
  14.  
  15. include $(TOP_DIR)MakeFlags
  16.  
  17. FUNCTIONS    =   findresident initresident
  18.  
  19. SRCDIR        = src/
  20. SRCS        = $(foreach f,$(FUNCTIONS),$(SRCDIR)$f.c)
  21. OBJS        = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.o)
  22. DEPS        = $(foreach f,$(FUNCTIONS),obj/$f.d)
  23. LIB        = $(LIB_PREFIX)$(PART)_$(SUBPART)$(OPT_SUFFIX)$(LIB_SUFFIX)
  24.  
  25. SUBDIRS     =
  26. USR_DIST_FILES    =
  27. DEV_DIST_FILES    = Makefile RCS_Link $(SRCS) $(SRCDIR)RCS_Link \
  28.         $(USR_DIST_FILES)
  29.  
  30. INCLUDES    =   $(INCLUDE_DIR) $(TOP_DIR)$(CURRENT_DIR)include \
  31.             $(INCLUDE_DIR) $(TOP_DIR)source/$(PART)/include \
  32.             $(INCLUDE_DIR) $(TOP_DIR)include
  33.  
  34. all :: $(LIB) all_subdirs
  35.     $(done-with-it)
  36.  
  37. all_subdirs :
  38.     @$(subst TARGET,all,$(SUBDIR_RULE))
  39.  
  40. $(LIB) : $(OBJDIR) $(OBJS)
  41.     $(AR) $(LIB) $(OBJS)
  42.  
  43. install ::
  44.     $(done-with-it)
  45.  
  46. clean ::
  47.     -$(RM) $(OBJS) $(LIB)
  48.  
  49. check ::
  50.     $(done-with-it)
  51.  
  52. dist ::
  53.     @$(subst TARGET,$@,$(SUBDIR_RULE))
  54.     @$(do-dist)
  55.  
  56. $(OBJDIR) :
  57.     -$(MKDIR) $(OBJDIR)
  58.  
  59. $(OBJDIR)/%.o : $(SRCDIR)%.c
  60.     $(run-cc)
  61.  
  62. obj/%.d : $(SRCDIR)%.c
  63.     $(make-depend)
  64.  
  65. -include $(DEPS)
  66.  
  67.